package org.logMonitor.service.impl;

import org.logMonitor.dao.cache.RedisDao;
import org.logMonitor.dto.IpSort;
import org.logMonitor.service.IpSortService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * Created by lenovo on 2018/1/19.
 */
@Service
public class IpSortServiceImpl implements IpSortService {

    @Autowired
    private RedisDao redisDao;

    public List<IpSort> getIpSortFromRedis() {
        return redisDao.getIpSortFromRedis();
    }

    public List<IpSort> getTcpUdpFromRedis() {
        return redisDao.getTcpUdpFromRedis();
    }
}
